package com.happy.cat.project.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.happy.cat.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


/**
 * 用户交互权限对象 user_im_authority
 * 
 * @author verne
 * @date 2020-08-04
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName(autoResultMap = true )
@ApiModel(value="用户交互权限对象", description="用户交互权限对象数据")
public class UserImAuthority implements Serializable {

private static final long serialVersionUID=1L;

    /** ID */
    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /** 禁止聊天 */
    @Excel(name = "禁止聊天")
    @ApiModelProperty(value = "禁止聊天")
    private Integer chatEnable;

    /** 禁止发红包 */
    @Excel(name = "禁止发红包")
    @ApiModelProperty(value = "禁止发红包")
    private Integer envelopeEnable;

    /** 禁止进入聊天室 */
    @Excel(name = "禁止进入聊天室")
    @ApiModelProperty(value = "禁止进入聊天室")
    private Integer chatroomEnable;

    /** 禁止关注用户 */
    @Excel(name = "禁止关注用户")
    @ApiModelProperty(value = "禁止关注用户")
    private Integer followingEnable;

    /** 禁止赠送钥匙 */
    @Excel(name = "禁止赠送钥匙")
    @ApiModelProperty(value = "禁止赠送钥匙")
    private Integer giveEnable;

    /** 禁止订阅房间 */
    @Excel(name = "禁止订阅房间")
    @ApiModelProperty(value = "禁止订阅房间")
    private Integer subscribeEnable;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "时间限制")
    private Date timeLimit;
}
